<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:forgeview="http://jboss.org/forge/view"	
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{pcPurchaseOrderBean.id}"/>
		<f:event type="preRenderView" listener="#{pcPurchaseOrderBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Create Pc Purchase Order"/>

	<ui:define name="header">
		Pc Purchase Order
	</ui:define>

	<ui:define name="subheader">
		<c:choose>
			<c:when test="#{!empty pcPurchaseOrderBean.id}">
				Edit existing Pc Purchase Order
			</c:when>
			<c:otherwise>
				Create a new Pc Purchase Order
			</c:otherwise>
		</c:choose>
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="create">
			<h:messages globalOnly="true" styleClass="error"/>

			<h:panelGrid columnClasses="label,component,required" columns="3">
				<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPoNo" value="Po No:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseOrderBeanPcPurchaseOrderPoNo" required="true" value="#{pcPurchaseOrderBean.pcPurchaseOrder.poNo}"/>
					<h:message for="pcPurchaseOrderBeanPcPurchaseOrderPoNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderSysTitleName" value="Sys Title Name:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sysTitleNameBean.converter}" id="pcPurchaseOrderBeanPcPurchaseOrderSysTitleName" value="#{pcPurchaseOrderBean.pcPurchaseOrder.sysTitleName}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysTitleNameBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="pcPurchaseOrderBeanPcPurchaseOrderSysTitleName" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderMmSupplierType" value="Mm Supplier Type:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{mmSupplierTypeBean.converter}" id="pcPurchaseOrderBeanPcPurchaseOrderMmSupplierType" value="#{pcPurchaseOrderBean.pcPurchaseOrder.mmSupplierType}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{mmSupplierTypeBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="pcPurchaseOrderBeanPcPurchaseOrderMmSupplierType" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPcPurchaseOrderStatus" value="Pc Purchase Order Status:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{pcPurchaseOrderStatusBean.converter}" id="pcPurchaseOrderBeanPcPurchaseOrderPcPurchaseOrderStatus" value="#{pcPurchaseOrderBean.pcPurchaseOrder.pcPurchaseOrderStatus}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{pcPurchaseOrderStatusBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="pcPurchaseOrderBeanPcPurchaseOrderPcPurchaseOrderStatus" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderHrEmp" value="Hr Emp:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{hrEmpBean.converter}" id="pcPurchaseOrderBeanPcPurchaseOrderHrEmp" value="#{pcPurchaseOrderBean.pcPurchaseOrder.hrEmp}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{hrEmpBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="pcPurchaseOrderBeanPcPurchaseOrderHrEmp" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderSysTermOfPayment" value="Sys Term Of Payment:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sysTermOfPaymentBean.converter}" id="pcPurchaseOrderBeanPcPurchaseOrderSysTermOfPayment" value="#{pcPurchaseOrderBean.pcPurchaseOrder.sysTermOfPayment}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysTermOfPaymentBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="pcPurchaseOrderBeanPcPurchaseOrderSysTermOfPayment" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderMmSupplier" value="Mm Supplier:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{mmSupplierBean.converter}" id="pcPurchaseOrderBeanPcPurchaseOrderMmSupplier" value="#{pcPurchaseOrderBean.pcPurchaseOrder.mmSupplier}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{mmSupplierBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="pcPurchaseOrderBeanPcPurchaseOrderMmSupplier" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPcPurchaseReq" value="Pc Purchase Req:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{pcPurchaseReqBean.converter}" id="pcPurchaseOrderBeanPcPurchaseOrderPcPurchaseReq" value="#{pcPurchaseOrderBean.pcPurchaseOrder.pcPurchaseReq}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{pcPurchaseReqBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="pcPurchaseOrderBeanPcPurchaseOrderPcPurchaseReq" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPoCode" value="Po Code:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseOrderBeanPcPurchaseOrderPoCode" maxLength="50" required="true" value="#{pcPurchaseOrderBean.pcPurchaseOrder.poCode}"/>
					<h:message for="pcPurchaseOrderBeanPcPurchaseOrderPoCode" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPoDescr" value="Po Descr:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseOrderBeanPcPurchaseOrderPoDescr" maxLength="100" required="true" value="#{pcPurchaseOrderBean.pcPurchaseOrder.poDescr}"/>
					<h:message for="pcPurchaseOrderBeanPcPurchaseOrderPoDescr" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPoDate" value="Po Date:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseOrderBeanPcPurchaseOrderPoDate" maxLength="10" required="true" value="#{pcPurchaseOrderBean.pcPurchaseOrder.poDate}">
						<f:convertDateTime type="date"/>
					</h:inputText>
					<h:message for="pcPurchaseOrderBeanPcPurchaseOrderPoDate" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPoRefSupplierQtCode" value="Po Ref Supplier Qt Code:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseOrderBeanPcPurchaseOrderPoRefSupplierQtCode" maxLength="30" value="#{pcPurchaseOrderBean.pcPurchaseOrder.poRefSupplierQtCode}"/>
					<h:message for="pcPurchaseOrderBeanPcPurchaseOrderPoRefSupplierQtCode" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPoSupplierCode" value="Po Supplier Code:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseOrderBeanPcPurchaseOrderPoSupplierCode" maxLength="50" value="#{pcPurchaseOrderBean.pcPurchaseOrder.poSupplierCode}"/>
					<h:message for="pcPurchaseOrderBeanPcPurchaseOrderPoSupplierCode" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPoSupplierFirstName" value="Po Supplier First Name:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseOrderBeanPcPurchaseOrderPoSupplierFirstName" maxLength="50" value="#{pcPurchaseOrderBean.pcPurchaseOrder.poSupplierFirstName}"/>
					<h:message for="pcPurchaseOrderBeanPcPurchaseOrderPoSupplierFirstName" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPoSupplierMidName" value="Po Supplier Mid Name:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseOrderBeanPcPurchaseOrderPoSupplierMidName" maxLength="50" value="#{pcPurchaseOrderBean.pcPurchaseOrder.poSupplierMidName}"/>
					<h:message for="pcPurchaseOrderBeanPcPurchaseOrderPoSupplierMidName" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPoSupplierLastName" value="Po Supplier Last Name:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseOrderBeanPcPurchaseOrderPoSupplierLastName" maxLength="50" value="#{pcPurchaseOrderBean.pcPurchaseOrder.poSupplierLastName}"/>
					<h:message for="pcPurchaseOrderBeanPcPurchaseOrderPoSupplierLastName" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPoSupplierIdCardNo" value="Po Supplier Id Card No:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseOrderBeanPcPurchaseOrderPoSupplierIdCardNo" maxLength="20" value="#{pcPurchaseOrderBean.pcPurchaseOrder.poSupplierIdCardNo}"/>
					<h:message for="pcPurchaseOrderBeanPcPurchaseOrderPoSupplierIdCardNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPoTermOfPaymentCode" value="Po Term Of Payment Code:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseOrderBeanPcPurchaseOrderPoTermOfPaymentCode" maxLength="50" value="#{pcPurchaseOrderBean.pcPurchaseOrder.poTermOfPaymentCode}"/>
					<h:message for="pcPurchaseOrderBeanPcPurchaseOrderPoTermOfPaymentCode" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPoDiscountPerc" value="Po Discount Perc:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseOrderBeanPcPurchaseOrderPoDiscountPerc" required="true" value="#{pcPurchaseOrderBean.pcPurchaseOrder.poDiscountPerc}"/>
					<h:message for="pcPurchaseOrderBeanPcPurchaseOrderPoDiscountPerc" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPoDiscountVal" value="Po Discount Val:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseOrderBeanPcPurchaseOrderPoDiscountVal" required="true" value="#{pcPurchaseOrderBean.pcPurchaseOrder.poDiscountVal}"/>
					<h:message for="pcPurchaseOrderBeanPcPurchaseOrderPoDiscountVal" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPoDiscountTotal" value="Po Discount Total:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseOrderBeanPcPurchaseOrderPoDiscountTotal" required="true" value="#{pcPurchaseOrderBean.pcPurchaseOrder.poDiscountTotal}"/>
					<h:message for="pcPurchaseOrderBeanPcPurchaseOrderPoDiscountTotal" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPoStatusIncVat" value="Po Status Inc Vat:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseOrderBeanPcPurchaseOrderPoStatusIncVat" required="true" value="#{pcPurchaseOrderBean.pcPurchaseOrder.poStatusIncVat}"/>
					<h:message for="pcPurchaseOrderBeanPcPurchaseOrderPoStatusIncVat" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPoVatPercVal" value="Po Vat Perc Val:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseOrderBeanPcPurchaseOrderPoVatPercVal" required="true" value="#{pcPurchaseOrderBean.pcPurchaseOrder.poVatPercVal}"/>
					<h:message for="pcPurchaseOrderBeanPcPurchaseOrderPoVatPercVal" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPoTotalPriceExcVat" value="Po Total Price Exc Vat:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseOrderBeanPcPurchaseOrderPoTotalPriceExcVat" required="true" value="#{pcPurchaseOrderBean.pcPurchaseOrder.poTotalPriceExcVat}"/>
					<h:message for="pcPurchaseOrderBeanPcPurchaseOrderPoTotalPriceExcVat" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPoTotalVat" value="Po Total Vat:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseOrderBeanPcPurchaseOrderPoTotalVat" required="true" value="#{pcPurchaseOrderBean.pcPurchaseOrder.poTotalVat}"/>
					<h:message for="pcPurchaseOrderBeanPcPurchaseOrderPoTotalVat" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPoTotalPrice" value="Po Total Price:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseOrderBeanPcPurchaseOrderPoTotalPrice" required="true" value="#{pcPurchaseOrderBean.pcPurchaseOrder.poTotalPrice}"/>
					<h:message for="pcPurchaseOrderBeanPcPurchaseOrderPoTotalPrice" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPoCreatedDtm" value="Po Created Dtm:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseOrderBeanPcPurchaseOrderPoCreatedDtm" maxLength="19" value="#{pcPurchaseOrderBean.pcPurchaseOrder.poCreatedDtm}">
						<f:convertDateTime pattern="MMM d, yyyy hh:mm:ss a" type="both"/>
					</h:inputText>
					<h:message for="pcPurchaseOrderBeanPcPurchaseOrderPoCreatedDtm" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPoMemo" value="Po Memo:"/>
				<h:panelGroup>
					<h:inputText id="pcPurchaseOrderBeanPcPurchaseOrderPoMemo" maxLength="500" value="#{pcPurchaseOrderBean.pcPurchaseOrder.poMemo}"/>
					<h:message for="pcPurchaseOrderBeanPcPurchaseOrderPoMemo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPcPurchaseOrderSupplierAddrs" value="Pc Purchase Order Supplier Addrs:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{pcPurchaseOrderBean.pcPurchaseOrder.pcPurchaseOrderSupplierAddrs}"/>
					<h:dataTable id="pcPurchaseOrderBeanPcPurchaseOrderPcPurchaseOrderSupplierAddrs" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Sys Addr Type"/>
							</f:facet>
							<h:link outcome="/pcPurchaseOrderSupplierAddr/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="forgeviewdisplayitemSysAddrType" value="#{forgeview:display(_item.sysAddrType)}"/>
							</h:link>
							<f:facet name="footer">
								<h:selectOneMenu converter="#{sysAddrTypeBean.converter}" id="pcPurchaseOrderSupplierAddrBeanAddSysAddrType" value="#{pcPurchaseOrderSupplierAddrBean.add.sysAddrType}">
									<f:selectItem/>
									<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysAddrTypeBean.all}" var="_item"/>
								</h:selectOneMenu>
								<h:message for="pcPurchaseOrderSupplierAddrBeanAddSysAddrType" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Sys Addr 01"/>
							</f:facet>
							<h:link outcome="/pcPurchaseOrderSupplierAddr/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="forgeviewdisplayitemSysAddr01" value="#{forgeview:display(_item.sysAddr01)}"/>
							</h:link>
							<f:facet name="footer">
								<h:selectOneMenu converter="#{sysAddr01Bean.converter}" id="pcPurchaseOrderSupplierAddrBeanAddSysAddr01" value="#{pcPurchaseOrderSupplierAddrBean.add.sysAddr01}">
									<f:selectItem/>
									<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysAddr01Bean.all}" var="_item"/>
								</h:selectOneMenu>
								<h:message for="pcPurchaseOrderSupplierAddrBeanAddSysAddr01" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Po Supplier Addr No"/>
							</f:facet>
							<h:link outcome="/pcPurchaseOrderSupplierAddr/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemPoSupplierAddrNo" value="#{_item.poSupplierAddrNo}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseOrderSupplierAddrBeanAddPoSupplierAddrNo" maxLength="20" value="#{pcPurchaseOrderSupplierAddrBean.add.poSupplierAddrNo}"/>
								<h:message for="pcPurchaseOrderSupplierAddrBeanAddPoSupplierAddrNo" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Po Supplier Addr Moo"/>
							</f:facet>
							<h:link outcome="/pcPurchaseOrderSupplierAddr/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemPoSupplierAddrMoo" value="#{_item.poSupplierAddrMoo}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseOrderSupplierAddrBeanAddPoSupplierAddrMoo" maxLength="10" value="#{pcPurchaseOrderSupplierAddrBean.add.poSupplierAddrMoo}"/>
								<h:message for="pcPurchaseOrderSupplierAddrBeanAddPoSupplierAddrMoo" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Po Supplier Addr Soi"/>
							</f:facet>
							<h:link outcome="/pcPurchaseOrderSupplierAddr/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemPoSupplierAddrSoi" value="#{_item.poSupplierAddrSoi}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseOrderSupplierAddrBeanAddPoSupplierAddrSoi" maxLength="100" value="#{pcPurchaseOrderSupplierAddrBean.add.poSupplierAddrSoi}"/>
								<h:message for="pcPurchaseOrderSupplierAddrBeanAddPoSupplierAddrSoi" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(pcPurchaseOrderSupplierAddrBean.added)}" id="pcPurchaseOrderBeanPcPurchaseOrderPcPurchaseOrderSupplierAddrsAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{pcPurchaseOrderSupplierAddrBean.add.pcPurchaseOrder}" value="#{pcPurchaseOrderBean.pcPurchaseOrder}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPcPurchaseOrderItems" value="Pc Purchase Order Items:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{pcPurchaseOrderBean.pcPurchaseOrder.pcPurchaseOrderItems}"/>
					<h:dataTable id="pcPurchaseOrderBeanPcPurchaseOrderPcPurchaseOrderItems" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Po Qty"/>
							</f:facet>
							<h:link outcome="/pcPurchaseOrderItem/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemPoQty" value="#{_item.poQty}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseOrderItemBeanAddPoQty" value="#{pcPurchaseOrderItemBean.add.poQty}"/>
								<h:message for="pcPurchaseOrderItemBeanAddPoQty" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Po Ppu"/>
							</f:facet>
							<h:link outcome="/pcPurchaseOrderItem/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemPoPpu" value="#{_item.poPpu}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseOrderItemBeanAddPoPpu" value="#{pcPurchaseOrderItemBean.add.poPpu}"/>
								<h:message for="pcPurchaseOrderItemBeanAddPoPpu" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Po Status Inc Vat"/>
							</f:facet>
							<h:link outcome="/pcPurchaseOrderItem/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemPoStatusIncVat" value="#{_item.poStatusIncVat}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseOrderItemBeanAddPoStatusIncVat" value="#{pcPurchaseOrderItemBean.add.poStatusIncVat}"/>
								<h:message for="pcPurchaseOrderItemBeanAddPoStatusIncVat" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Po Vat Perc Val"/>
							</f:facet>
							<h:link outcome="/pcPurchaseOrderItem/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemPoVatPercVal" value="#{_item.poVatPercVal}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseOrderItemBeanAddPoVatPercVal" value="#{pcPurchaseOrderItemBean.add.poVatPercVal}"/>
								<h:message for="pcPurchaseOrderItemBeanAddPoVatPercVal" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Po Vat Val"/>
							</f:facet>
							<h:link outcome="/pcPurchaseOrderItem/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemPoVatVal" value="#{_item.poVatVal}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseOrderItemBeanAddPoVatVal" value="#{pcPurchaseOrderItemBean.add.poVatVal}"/>
								<h:message for="pcPurchaseOrderItemBeanAddPoVatVal" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(pcPurchaseOrderItemBean.added)}" id="pcPurchaseOrderBeanPcPurchaseOrderPcPurchaseOrderItemsAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{pcPurchaseOrderItemBean.add.pcPurchaseOrder}" value="#{pcPurchaseOrderBean.pcPurchaseOrder}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPcPurchaseReceipts" value="Pc Purchase Receipts:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{pcPurchaseOrderBean.pcPurchaseOrder.pcPurchaseReceipts}"/>
					<h:dataTable id="pcPurchaseOrderBeanPcPurchaseOrderPcPurchaseReceipts" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Rcpt No"/>
							</f:facet>
							<h:link outcome="/pcPurchaseReceipt/view">
								<f:param name="id" value="#{_item.rcptNo}"/>
								<h:outputText id="itemRcptNo" value="#{_item.rcptNo}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseReceiptBeanAddRcptNo" value="#{pcPurchaseReceiptBean.add.rcptNo}"/>
								<h:message for="pcPurchaseReceiptBeanAddRcptNo" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Rcpt Code"/>
							</f:facet>
							<h:link outcome="/pcPurchaseReceipt/view">
								<f:param name="id" value="#{_item.rcptNo}"/>
								<h:outputText id="itemRcptCode" value="#{_item.rcptCode}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseReceiptBeanAddRcptCode" maxLength="50" value="#{pcPurchaseReceiptBean.add.rcptCode}"/>
								<h:message for="pcPurchaseReceiptBeanAddRcptCode" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Rcpt Descr"/>
							</f:facet>
							<h:link outcome="/pcPurchaseReceipt/view">
								<f:param name="id" value="#{_item.rcptNo}"/>
								<h:outputText id="itemRcptDescr" value="#{_item.rcptDescr}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseReceiptBeanAddRcptDescr" maxLength="300" value="#{pcPurchaseReceiptBean.add.rcptDescr}"/>
								<h:message for="pcPurchaseReceiptBeanAddRcptDescr" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Rcpt Date"/>
							</f:facet>
							<h:link outcome="/pcPurchaseReceipt/view">
								<f:param name="id" value="#{_item.rcptNo}"/>
								<h:outputText id="itemRcptDate" value="#{_item.rcptDate}">
									<f:convertDateTime type="date"/>
								</h:outputText>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseReceiptBeanAddRcptDate" maxLength="10" value="#{pcPurchaseReceiptBean.add.rcptDate}">
									<f:convertDateTime type="date"/>
								</h:inputText>
								<h:message for="pcPurchaseReceiptBeanAddRcptDate" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Rcpt Vat Perc Val"/>
							</f:facet>
							<h:link outcome="/pcPurchaseReceipt/view">
								<f:param name="id" value="#{_item.rcptNo}"/>
								<h:outputText id="itemRcptVatPercVal" value="#{_item.rcptVatPercVal}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseReceiptBeanAddRcptVatPercVal" value="#{pcPurchaseReceiptBean.add.rcptVatPercVal}"/>
								<h:message for="pcPurchaseReceiptBeanAddRcptVatPercVal" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(pcPurchaseReceiptBean.added)}" id="pcPurchaseOrderBeanPcPurchaseOrderPcPurchaseReceiptsAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{pcPurchaseReceiptBean.add.pcPurchaseOrder}" value="#{pcPurchaseOrderBean.pcPurchaseOrder}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPcPurchaseOrderSupplierContacts" value="Pc Purchase Order Supplier Contacts:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{pcPurchaseOrderBean.pcPurchaseOrder.pcPurchaseOrderSupplierContacts}"/>
					<h:dataTable id="pcPurchaseOrderBeanPcPurchaseOrderPcPurchaseOrderSupplierContacts" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Sys Title Name"/>
							</f:facet>
							<h:link outcome="/pcPurchaseOrderSupplierContact/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="forgeviewdisplayitemSysTitleName" value="#{forgeview:display(_item.sysTitleName)}"/>
							</h:link>
							<f:facet name="footer">
								<h:selectOneMenu converter="#{sysTitleNameBean.converter}" id="pcPurchaseOrderSupplierContactBeanAddSysTitleName" value="#{pcPurchaseOrderSupplierContactBean.add.sysTitleName}">
									<f:selectItem/>
									<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysTitleNameBean.all}" var="_item"/>
								</h:selectOneMenu>
								<h:message for="pcPurchaseOrderSupplierContactBeanAddSysTitleName" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Po Supplier Contact First Name"/>
							</f:facet>
							<h:link outcome="/pcPurchaseOrderSupplierContact/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemPoSupplierContactFirstName" value="#{_item.poSupplierContactFirstName}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseOrderSupplierContactBeanAddPoSupplierContactFirstName" maxLength="50" value="#{pcPurchaseOrderSupplierContactBean.add.poSupplierContactFirstName}"/>
								<h:message for="pcPurchaseOrderSupplierContactBeanAddPoSupplierContactFirstName" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Po Supplier Contact Mid Name"/>
							</f:facet>
							<h:link outcome="/pcPurchaseOrderSupplierContact/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemPoSupplierContactMidName" value="#{_item.poSupplierContactMidName}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseOrderSupplierContactBeanAddPoSupplierContactMidName" maxLength="50" value="#{pcPurchaseOrderSupplierContactBean.add.poSupplierContactMidName}"/>
								<h:message for="pcPurchaseOrderSupplierContactBeanAddPoSupplierContactMidName" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Po Supplier Contact Last Name"/>
							</f:facet>
							<h:link outcome="/pcPurchaseOrderSupplierContact/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemPoSupplierContactLastName" value="#{_item.poSupplierContactLastName}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseOrderSupplierContactBeanAddPoSupplierContactLastName" maxLength="50" value="#{pcPurchaseOrderSupplierContactBean.add.poSupplierContactLastName}"/>
								<h:message for="pcPurchaseOrderSupplierContactBeanAddPoSupplierContactLastName" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Po Supplier Contact Phone No"/>
							</f:facet>
							<h:link outcome="/pcPurchaseOrderSupplierContact/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemPoSupplierContactPhoneNo" value="#{_item.poSupplierContactPhoneNo}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseOrderSupplierContactBeanAddPoSupplierContactPhoneNo" maxLength="20" value="#{pcPurchaseOrderSupplierContactBean.add.poSupplierContactPhoneNo}"/>
								<h:message for="pcPurchaseOrderSupplierContactBeanAddPoSupplierContactPhoneNo" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(pcPurchaseOrderSupplierContactBean.added)}" id="pcPurchaseOrderBeanPcPurchaseOrderPcPurchaseOrderSupplierContactsAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{pcPurchaseOrderSupplierContactBean.add.pcPurchaseOrder}" value="#{pcPurchaseOrderBean.pcPurchaseOrder}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
			</h:panelGrid>

			<div class="buttons">
				<h:commandLink value="Save" action="#{pcPurchaseOrderBean.update}" styleClass="btn btn-primary"/>
				<c:choose>
					<c:when test="#{!empty pcPurchaseOrderBean.id}">
						<h:link value="Cancel" outcome="view" styleClass="btn btn-primary">
							<f:param name="id" value="#{pcPurchaseOrderBean.id}"/>
						</h:link>
						<h:commandLink value="Delete" action="#{pcPurchaseOrderBean.delete}" styleClass="btn btn-primary"/>
					</c:when>
					<c:otherwise>
						<h:link value="Cancel" outcome="search" styleClass="btn btn-primary"/>
					</c:otherwise>
				</c:choose>
			</div>
		</h:form>
	</ui:define>

</ui:composition>